package com.lut.adapter;

/**
 * @author liuning
 * @ProjectName GOF23
 * @time 2021/12/22 0:22
 */
//1、继承（类适配器，单继承）
//2、组合（对象适配器：常用）
public class AdapterTools2 implements NetToUsb{

    private Adapter adapter;

    public AdapterTools2(Adapter adapter){
        this.adapter = adapter;
    }
    @Override
    public void handleRequest() {
        adapter.request();
    }
}
